import * as path from "node:path";


export const routes = [
	// {
	// 	path: '/download/app',
	// 	name: 'app',
	// 	component: () => import('@/views/download/app.vue')
	// },
	{
		path: '/mine',
		name: 'mine',
		component: () => import('@/views/Empty.vue'),
		redirect:'/mine/index',
		children:[
			{
				path: 'index',
				name: 'mineIndex',
				component: () => import('@/views/mine/index.vue')
			},
			{
				path: 'userInfo',
				name: 'userInfo',
				component: () => import('@/views/mine/components/UserInfo.vue')
			},
			{
				path: 'material',
				name: 'mineMaterial',
				component: () => import('@/views/mine/material.vue')
			},
			
		]
	},
	{
		path: '/questionBank',
		name: 'questionBank',
		component: () => import('@/views/Empty.vue'),
		redirect: '/questionBank/chapterPractice/practiceMode',
		children: [
			{
				path: 'chapterPractice',
				name: 'chapterPractice',
				component:() => import('@/views/Empty.vue'),
				redirect:'/questionBank/chapterPractice/practiceMode',
				children:[
					{
						path: 'practiceMode',
						name: 'practiceMode',
						component: () => import('@/views/questionBank/chapterPractice/PracticeMode.vue')
					},
				]
			},
			{
				path: 'todayPractice',
				name: 'todayPractice',
				component:() => import('@/views/questionBank/todayPractice/index.vue'),
			},
			{
				path: 'note',
				name: 'note',
				component:() => import('@/views/Empty.vue'),
				children: [{
					path: 'index',
					name: 'noteIndex',
					component: () => import('@/views/questionBank/note/index.vue')
				}]
			},
			{
				path: 'paper',
				name: 'questionBankPaper',
				component:() => import('@/views/Empty.vue'),
				children: [{
					path: 'PracticeMode',
					name: 'questionBankPaperPracticeMode',
					component: () => import('@/views/questionBank/paper/PracticeMode.vue')
				},{
					path: 'ExamMode',
					name: 'questionBankPaperExamMode',
					component: () => import('@/views/questionBank/paper/ExamMode.vue')
				},{
					path: 'RandomMode',
					name: 'questionBankPaperRandomMode',
					component: () => import('@/views/questionBank/paper/RandomMode.vue')
				},{
					path: 'todayPractice',
					name: 'questionBankPaperTodayPractice',
					component: () => import('@/views/questionBank/paper/TodayPractice.vue')
				},{
					path: 'ExamResult',
					name: 'questionBankPaperExamResult',
					component: () => import('@/views/questionBank/paper/ExamResult.vue')
				},{
					path: 'QuestionAnalys',
					name: 'questionBankPaperQuestionAnalys',
					component: () => import('@/views/questionBank/paper/QuestionAnalys.vue')
				}]
			}
		]
	},
	{
		path: '/courseVideo',
		name: 'courseVideo',
		component: () => import('@/views/Empty.vue'),
		redirect: '/courseVideo/chapter/videos',
		children: [
			{
				path: 'chapter',
				name: 'chapterVideo',
				component:() => import('@/views/Empty.vue'),
				redirect: '/courseVideo/chapter/videos',
				children: [
					{
						path: 'videos',
						name: 'videos',
						component: () => import('@/views/courseVideo/chapter/Videos.vue')
					},
				]
			}
		]
	},
	{
		path: '/buyCenter',
		name: 'buyCenter',
		component: () => import('@/views/Empty.vue'),
		redirect: '/buyCenter/index',
		children: [
			{
				path: 'index',
				name: 'buyCenterIndex',
				component:() => import('@/views/buyCenter/index.vue'),
			},
			{
				path: 'package',
				name: 'package',
				component: () => import('@/views/Empty.vue'),
				children: [
					{
						path: 'index',
						name:'packageIndex',
						component: () => import('@/views/buyCenter/package/index.vue'),
					}
				]
			},
			{
				path: 'order',
				name: 'order',
				component: () => import('@/views/Empty.vue'),
				children: [
					{
						path: 'pay',
						name:'orderPay',
						component: () => import('@/views/buyCenter/order/pay.vue'),
					},
					{
						path: 'payType',
						name:'orderPayType',
						component: () => import('@/views/buyCenter/order/payType.vue'),
					}
				]
			}
		]
	},
	{
		path: '/free',
		name: 'free',
		component: () => import('@/views/Empty.vue'),
		redirect: '/free/video/index',
		children: [
			{
				path: 'video',
				name: 'freeVideo',
				component: () => import('@/views/Empty.vue'),
				children: [
					{
						path: 'index',
						name: 'freeVideoIndex',
						component: () => import('@/views/free/video/index.vue')
					}
				]
			}
		]
	},
	{
		path: '/live',
		name: 'live',
		component: () => import('@/views/Empty.vue'),
		redirect: '/live/appointment/index',
		children: [
			{
				path: 'appointment',
				name: 'appointment',
				component: () => import('@/views/Empty.vue'),
				children: [
					{
						path: 'index',
						name: 'appointmentIndex',
						component: () => import('@/views/live/appointment/index.vue'),
					}
				]
			}
		]
	},
	{
		path: '/study',
		name: 'study',
		component: () => import('@/views/Empty.vue'),
		redirect: '/study/material/index',
		children: [
			{
				path: 'material',
				name: 'studyMaterial',
				component: () => import('@/views/Empty.vue'),
				children: [
					{
						path: 'index',
						name: 'studyMaterialIndex',
						component: () => import('@/views/study/material/index.vue'),
					}
				]
			},
			{
				path: 'bank',
				name: 'studyBank',
				component: () => import('@/views/Empty.vue'),
				children: [
					{
						path: 'index',
						name: 'studyBankIndex',
						component: () => import('@/views/study/bank/index.vue'),
					}
				]
			},
			{
				path: 'question',
				name: 'studyQuestion',
				component: () => import('@/views/Empty.vue'),
				children: [
					{
						path: 'one',
						name: 'studyQuestionOne',
						component: () => import('@/views/study/question/one.vue'),
					}
				]
			},
			{
				path: 'video',
				name: 'studyVideo',
				component: () => import('@/views/Empty.vue'),
				children: [
					{
						path: 'index',
						name: 'studyVideoIndex',
						component: () => import('@/views/study/video/index.vue'),
					}
				]
			},
		]
	}
];
